Skip to content

Fix an issue with the CI pipeline.#302

Merged
iclanton merged 3 commits into
microsoft:mainfrom
iclanton:fix-ci-pipeline
Feb 24, 2026
Merged

Fix an issue with the CI pipeline.#302
iclanton merged 3 commits into
microsoft:mainfrom
iclanton:fix-ci-pipeline

Conversation

@iclanton
Copy link
Copy Markdown
Member

No description provided.

@iclanton iclanton enabled auto-merge February 23, 2026 18:52
iclanton and others added 2 commits February 23, 2026 14:20
The getGitHubOrg() function used a regex with .+? (lazy match any character)
to extract the organization name from a git remote URL. This worked for SSH
URLs (git@github.com:ORG/rushstack-websites.git) but failed for HTTPS URLs
(https://github.com/microsoft/rushstack-websites) used by GitHub Actions,
incorrectly returning '//github.com/microsoft' instead of 'microsoft'.

This caused the build to incorrectly detect itself as a fork build, setting
baseUrl='/rushstack-websites/<package>/' instead of '/', which caused
Docusaurus to flag internal links as broken (onBrokenLinks: 'throw').

The fix changes .+? to [^:/]+ to prevent matching across path delimiters.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
deploy-fork/scripts/build.js copies the build output of all 7 websites,
but package.json only declared 3 of them as dependencies. Rush would
schedule deploy-fork to run as soon as those 3 deps finished, while the
other 4 websites (api-extractor.com, heft.rushstack.io, lfx.rushstack.io,
tsdoc.org) could still be building in parallel. When deploy-fork tried to
copy their build/ directories, they didn't exist yet, causing an ENOENT
failure. Rush then waited for all running builds to finish before reporting
the error, producing the consistent ~12-minute build failure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@iclanton iclanton merged commit d1e0a56 into microsoft:main Feb 24, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants